
//
//  KCTableViewCell.m
//  keke
//
//  Created by 张帅 on 16/1/22.
//  Copyright © 2016年 /Users/zhangshuai/Desktop/桌面/练习代码库/keke/keke/Base.lproj/Main.storyboardZhangShuai. All rights reserved.
//

#import "KCTableViewCell.h"


@interface KCTableViewCell ()

@property (weak, nonatomic) IBOutlet UIView *bottomView;

@property (weak, nonatomic) IBOutlet UIView *redView;

@property (weak, nonatomic) IBOutlet UILabel *kclable;

/**
 <#Description#>
 
 - returns: <#return value description#>
 */
@end


@implementation KCTableViewCell

//UITableViewCellSeparatorStyleNone
-(void)setModel:(ZsModel *)model
{
    _model=model;
    self.kclable.text=model.text;
    self.kclable.textColor=[UIColor  redColor];
    
    
}

-(CGFloat)rowHeightModel:(ZsModel *)model{
   
    self.model=model;
    [self layoutIfNeeded];
    
    return CGRectGetMaxY(self.bottomView.frame);
}
@end
